{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# ASCII码表\n",
    "\n",
    "\n",
    "|Bin(二进制)|Oct(八进制)|Dec(十进制)|Hex(十六进制)|缩写/字符|解释|\n",
    "|  ----  | ----  |  ----  | ----  |  ----  | ----  |\n",
    "|0000 0000|00|0|0x00|NUL(null)|空字符|\n",
    "|0000 0001|01|1|0x01|SOH(start of headline)|标题开始|\n",
    "|0000 0010|02|2|0x02|STX (start of text)|正文开始|\n",
    "|0000 0011|03|3|0x03|ETX (end of text)|正文结束|\n",
    "|0000 0100|04|4|0x04|EOT (end of transmission)|传输结束|\n",
    "|0000 0101|05|5|0x05|ENQ (enquiry)|请求|\n",
    "|0000 0110|06|6|0x06|ACK (acknowledge)|收到通知|\n",
    "|0000 0111|07|7|0x07|BEL (bell)|响铃|\n",
    "|0000 1000|010|8|0x08|BS (backspace)|退格|\n",
    "|0000 1001|011|9|0x09|HT (horizontal tab)|水平制表符|\n",
    "|0000 1010|012|10|0x0A|LF (NL line feed, new line)|换行键|\n",
    "|0000 1011|013|11|0x0B|VT (vertical tab)|垂直制表符|\n",
    "|0000 1100|014|12|0x0C|FF (NP form feed, new page)|换页键|\n",
    "|0000 1101|015|13|0x0D|CR (carriage return)|回车键|\n",
    "|0000 1110|016|14|0x0E|SO (shift out)|不用切换|\n",
    "|0000 1111|017|15|0x0F|SI (shift in)|启用切换|\n",
    "|0001 0000|020|16|0x10|DLE (data link escape)|数据链路转义|\n",
    "|0001 0001|021|17|0x11|DC1 (device control 1)|设备控制1|\n",
    "|0001 0010|022|18|0x12|DC2 (device control 2)|设备控制2|\n",
    "|0001 0011|023|19|0x13|DC3 (device control 3)|设备控制3|\n",
    "|0001 0100|024|20|0x14|DC4 (device control 4)|设备控制4|\n",
    "|0001 0101|025|21|0x15|NAK (negative acknowledge)|拒绝接收|\n",
    "|0001 0110|026|22|0x16|SYN (synchronous idle)|同步空闲|\n",
    "|0001 0111|027|23|0x17|ETB (end of trans. block)|结束传输块|\n",
    "|0001 1000|030|24|0x18|CAN (cancel)|取消|\n",
    "|0001 1001|031|25|0x19|EM (end of medium)|媒介结束|\n",
    "|0001 1010|032|26|0x1A|SUB (substitute)|代替|\n",
    "|0001 1011|033|27|0x1B|ESC (escape)|换码(溢出)|\n",
    "|0001 1100|034|28|0x1C|FS (file separator)|文件分隔符|\n",
    "|0001 1101|035|29|0x1D|GS (group separator)|分组符|\n",
    "|0001 1110|036|30|0x1E|RS (record separator)|记录分隔符|\n",
    "|0001 1111|037|31|0x1F|US (unit separator)|单元分隔符|\n",
    "|0010 0000|040|32|0x20|(space)|空格|\n",
    "|0010 0001|041|33|0x21|!|叹号|\n",
    "|0010 0010|042|34|0x22|\"|双引号|\n",
    "|0010 0011|043|35|0x23|#|井号|\n",
    "|0010 0100|044|36|0x24|$|美元符|\n",
    "|0010 0101|045|37|0x25|%|百分号|\n",
    "|0010 0110|046|38|0x26|&|和号|\n",
    "|0010 0111|047|39|0x27|'|闭单引号|\n",
    "|0010 1000|050|40|0x28|(|开括号|\n",
    "|0010 1001|051|41|0x29|)|闭括号|\n",
    "|0010 1010|052|42|0x2A|*|星号|\n",
    "|0010 1011|053|43|0x2B|+|加号|\n",
    "|0010 1100|054|44|0x2C|,|逗号|\n",
    "|0010 1101|055|45|0x2D|-|减号/破折号|\n",
    "|0010 1110|056|46|0x2E|.|句号|\n",
    "|0010 1111|057|47|0x2F|/|斜杠|\n",
    "|0011 0000|060|48|0x30|0|字符0|\n",
    "|0011 0001|061|49|0x31|1|字符1|\n",
    "|0011 0010|062|50|0x32|2|字符2|\n",
    "|0011 0011|063|51|0x33|3|字符3|\n",
    "|0011 0100|064|52|0x34|4|字符4|\n",
    "|0011 0101|065|53|0x35|5|字符5|\n",
    "|0011 0110|066|54|0x36|6|字符6|\n",
    "|0011 0111|067|55|0x37|7|字符7|\n",
    "|0011 1000|070|56|0x38|8|字符8|\n",
    "|0011 1001|071|57|0x39|9|字符9|\n",
    "|0011 1010|072|58|0x3A|:|冒号|\n",
    "|0011 1011|073|59|0x3B|;|分号|\n",
    "|0011 1100|074|60|0x3C|<|小于|\n",
    "|0011 1101|075|61|0x3D|=|等号|\n",
    "|0011 1110|076|62|0x3E|>|大于|\n",
    "|0011 1111|077|63|0x3F|?|问号|\n",
    "|0100 0000|0100|64|0x40|@|电子邮件符号|\n",
    "|0100 0001|0101|65|0x41|A|大写字母A|\n",
    "|0100 0010|0102|66|0x42|B|大写字母B|\n",
    "|0100 0011|0103|67|0x43|C|大写字母C|\n",
    "|0100 0100|0104|68|0x44|D|大写字母D|\n",
    "|0100 0101|0105|69|0x45|E|大写字母E|\n",
    "|0100 0110|0106|70|0x46|F|大写字母F|\n",
    "|0100 0111|0107|71|0x47|G|大写字母G|\n",
    "|0100 1000|0110|72|0x48|H|大写字母H|\n",
    "|0100 1001|0111|73|0x49|I|大写字母I|\n",
    "|01001010|0112|74|0x4A|J|大写字母J|\n",
    "|0100 1011|0113|75|0x4B|K|大写字母K|\n",
    "|0100 1100|0114|76|0x4C|L|大写字母L|\n",
    "|0100 1101|0115|77|0x4D|M|大写字母M|\n",
    "|0100 1110|0116|78|0x4E|N|大写字母N|\n",
    "|0100 1111|0117|79|0x4F|O|大写字母O|\n",
    "|0101 0000|0120|80|0x50|P|大写字母P|\n",
    "|0101 0001|0121|81|0x51|Q|大写字母Q|\n",
    "|0101 0010|0122|82|0x52|R|大写字母R|\n",
    "|0101 0011|0123|83|0x53|S|大写字母S|\n",
    "|0101 0100|0124|84|0x54|T|大写字母T|\n",
    "|0101 0101|0125|85|0x55|U|大写字母U|\n",
    "|0101 0110|0126|86|0x56|V|大写字母V|\n",
    "|0101 0111|0127|87|0x57|W|大写字母W|\n",
    "|0101 1000|0130|88|0x58|X|大写字母X|\n",
    "|0101 1001|0131|89|0x59|Y|大写字母Y|\n",
    "|0101 1010|0132|90|0x5A|Z|大写字母Z|\n",
    "|0101 1011|0133|91|0x5B|[|开方括号|\n",
    "|0101 1100|0134|92|0x5C|\\\\|反斜杠|\n",
    "|0101 1101|0135|93|0x5D|]|闭方括号|\n",
    "|0101 1110|0136|94|0x5E|^|脱字符|\n",
    "|0101 1111|0137|95|0x5F|_|下划线|\n",
    "|0110 0000|0140|96|0x60|`|开单引号|\n",
    "|0110 0001|0141|97|0x61|a|小写字母a|\n",
    "|0110 0010|0142|98|0x62|b|小写字母b|\n",
    "|0110 0011|0143|99|0x63|c|小写字母c|\n",
    "|0110 0100|0144|100|0x64|d|小写字母d|\n",
    "|0110 0101|0145|101|0x65|e|小写字母e|\n",
    "|0110 0110|0146|102|0x66|f|小写字母f|\n",
    "|0110 0111|0147|103|0x67|g|小写字母g|\n",
    "|0110 1000|0150|104|0x68|h|小写字母h|\n",
    "|0110 1001|0151|105|0x69|i|小写字母i|\n",
    "|0110 1010|0152|106|0x6A|j|小写字母j|\n",
    "|0110 1011|0153|107|0x6B|k|小写字母k|\n",
    "|0110 1100|0154|108|0x6C|l|小写字母l|\n",
    "|0110 1101|0155|109|0x6D|m|小写字母m|\n",
    "|0110 1110|0156|110|0x6E|n|小写字母n|\n",
    "|0110 1111|0157|111|0x6F|o|小写字母o|\n",
    "|0111 0000|0160|112|0x70|p|小写字母p|\n",
    "|0111 0001|0161|113|0x71|q|小写字母q|\n",
    "|0111 0010|0162|114|0x72|r|小写字母r|\n",
    "|0111 0011|0163|115|0x73|s|小写字母s|\n",
    "|0111 0100|0164|116|0x74|t|小写字母t|\n",
    "|0111 0101|0165|117|0x75|u|小写字母u|\n",
    "|0111 0110|0166|118|0x76|v|小写字母v|\n",
    "|0111 0111|0167|119|0x77|w|小写字母w|\n",
    "|0111 1000|0170|120|0x78|x|小写字母x|\n",
    "|0111 1001|0171|121|0x79|y|小写字母y|\n",
    "|0111 1010|0172|122|0x7A|z|小写字母z|\n",
    "|0111 1011|0173|123|0x7B|{|开花括号|\n",
    "|0111 1100|0174|124|0x7C|\\||垂线|\n",
    "|0111 1101|0175|125|0x7D|}|闭花括号|\n",
    "|0111 1110|0176|126|0x7E|~|波浪号|\n",
    "|0111 1111|0177|127|0x7F|DEL (delete)|删除|\n",
    "\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "1"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "|转义字符|含义|\n",
    "|  ----  |  ----  |\n",
    "|\\\\newline|忽略换行|\n",
    "|\\\\\\|反斜杠（\\）|\n",
    "|\\\\'|单引号（‘）|\n",
    "|\\\\\"|双引号（“）|\n",
    "|\\\\a|ASCII蜂鸣（BEL）|\n",
    "|\\\\b|ASCII退格（BS）|\n",
    "|\\\\f|ASCII走纸（FF）|\n",
    "|\\\\n|ASCII换行（LF）|\n",
    "|\\\\N{name}|给定名称的Unicode字符|\n",
    "|\\\\ooo|给定八进制值的字符|\n",
    "|\\\\r|ASCII回车符（CR）|\n",
    "|\\\\t|ASCII制表符（TAB）|\n",
    "|\\\\uhhhh|给定16位十六进制值的Unicode字符|\n",
    "|\\\\Uhhhhhhhh|给定32位十六进制值的Unicode字符|\n",
    "|\\\\v|ASCII垂直指标（VT）|\n",
    "|\\\\xhh|给定8位十六进制值的Unicode字符|"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
